/*
 * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package com.opensymphony.user.provider.hibernate3.ahxu.entity;

import java.util.List;
import java.util.Set;


/**
 * DOCUMENT ME!
 *
 * @author $author$
 * @version $Revision: 1.3 $
 */
public interface HibernateUser {
    //~ Methods ////////////////////////////////////////////////////////////////

    public void setId(long id);

    public long getId();

    public void setName(String name);

    public String getName();

    List getGroupList();

    List getGroupNameList();

    void setGroups(Set groups);

    Set getGroups();

    void setPassword(String password);

    void setPasswordHash(String passwordHash);

    String getPasswordHash();

    void addGroup(HibernateGroup group);

    boolean authenticate(String password);

    void removeGroup(HibernateGroup group);
}
